module.exports = function($scope, $resource, obj, $modalInstance, toaster){
	//111
	$scope.objt = {
		'authuser_id': obj.authuser_id,
		'username':obj.username,
		'postaddress':obj.address,
		'userid':obj.userid
	};


	$scope.gogo = function(){///api/ac/uc/userService/updateUserInfoByMobile
		$resource('/api/ac/uc/userService/updateSKUserInfoByMobile', {}, {}).save($scope.objt, function (res) {
			if (res.errcode === 0) {
				toaster.success({title: '', body: '成功'});
				$modalInstance.close();
			} else {
				toaster.error({title: '', body: '失败'});
			}
		});
	}
	

};
